package com.greenyoung.pwiki.gateway.proper;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Mr.Zhao
 */
@Data
@ConfigurationProperties(prefix = "pwiki.uaa")
public class UaaProperties {
    /**
     * jwt令牌对称加密密钥
     */
    private String jwtSecret = "MCeEQ8B";
    /**
     * token失效时间，默认两小时，单位秒
     */
    private Integer tokenValid = 7200;
    /**
     * 刷新令牌的失效时间，默认3天
     */
    private Integer refreshTokenValid = 259200;
}
